package com.easthome.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easthome.common.result.Result;
import com.easthome.model.system.SysRole;
import com.easthome.model.system.SysUser;
import com.easthome.vo.system.AssginRoleVo;
import com.easthome.vo.system.LoginVo;
import com.easthome.vo.system.RouterVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: 朱敦宇
 * @time: 2023/11/8 11:22
 */
public interface SysUserService extends IService<SysUser> {
    Result toAssign(Long id);

    Result doAssign(AssginRoleVo assginRoleVo);

    List<SysRole> findRolesByUserId(Long userId);

    List<String> findButtonsByUserId(Long userId);

    List<RouterVo> findRotersByUserId(Long userId);

    Result login(LoginVo loginVo, HttpServletRequest request);

    Map<String, Object> getCurrentUser();

    String importUser(MultipartFile file) throws Exception;
}
